﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yunzuan.Foundation.Attributes;
using Yunzuan.Foundation.Entities;

namespace CloudDiamonds.Models.DBModels
{
    [Table(TableName = "yz_order_prime_gold", PrimaryKey = "OrderID")]
    public class PrimeGoldsOrderInfo : BaseEntity
    {
        #region Model
        private int _orderid;
        /// <summary>
        ///订单序列号
        /// </summary>

        [Column(IsAutoIncrement = true)]
        public int OrderID
        {
            get { return _orderid; }
            set { this.ChangeNotify<int>("OrderID", value, ref _orderid); }
        }
        private int? _userid;
        /// <summary>
        ///代下单用户
        /// </summary>
        public int? UserID
        {
            get { return _userid; }
            set { this.ChangeNotify<int?>("UserID", value, ref _userid); }
        }
        private int? _purchaseuserid;
        /// <summary>
        ///采购用户id
        /// </summary>
        public int? PurchaseUserID
        {
            get { return _purchaseuserid; }
            set { this.ChangeNotify<int?>("PurchaseUserID", value, ref _purchaseuserid); }
        }
        private int _customerid;
        /// <summary>
        ///所属用户id
        /// </summary>
        public int CustomerID
        {
            get { return _customerid; }
            set { this.ChangeNotify<int>("CustomerID", value, ref _customerid); }
        }
        private int _orderstatus;
        /// <summary>
        ///订单状态：//  3待出货 4已出货 5已作废  7已退回 
        /// </summary>
        public int OrderStatus
        {
            get { return _orderstatus; }
            set { this.ChangeNotify<int>("OrderStatus", value, ref _orderstatus); }
        }
        private int _paymentstatus;
        /// <summary>
        ///付款状态：0未支付 1已支付
        /// </summary>
        public int PaymentStatus
        {
            get { return _paymentstatus; }
            set { this.ChangeNotify<int>("PaymentStatus", value, ref _paymentstatus); }
        }
        private int? _ordertype;
        /// <summary>
        ///订单类型（1、客户自己下单2 代下单）
        /// </summary>
        public int? OrderType
        {
            get { return _ordertype; }
            set { this.ChangeNotify<int?>("OrderType", value, ref _ordertype); }
        }
        private string _remarks;
        /// <summary>
        ///客户备注
        /// </summary>
        public string Remarks
        {
            get { return _remarks; }
            set { this.ChangeNotify<string>("Remarks", value, ref _remarks); }
        }
        private string _salesremarks;
        /// <summary>
        ///销售员备注
        /// </summary>
        public string SalesRemarks
        {
            get { return _salesremarks; }
            set { this.ChangeNotify<string>("SalesRemarks", value, ref _salesremarks); }
        }
        private string _purchaseremarks;
        /// <summary>
        ///
        /// </summary>
        public string PurchaseRemarks
        {
            get { return _purchaseremarks; }
            set { this.ChangeNotify<string>("PurchaseRemarks", value, ref _purchaseremarks); }
        }
        private string _goodsremark;
        /// <summary>
        ///取货员备注
        /// </summary>
        public string GoodsRemark
        {
            get { return _goodsremark; }
            set { this.ChangeNotify<string>("GoodsRemark", value, ref _goodsremark); }
        }
        private decimal _confirmprice;
        /// <summary>
        ///卖出人民币总价
        /// </summary>
        public decimal ConfirmPrice
        {
            get { return _confirmprice; }
            set { this.ChangeNotify<decimal>("ConfirmPrice", value, ref _confirmprice); }
        }
        private decimal _confirmdiscount;
        /// <summary>
        ///
        /// </summary>
        public decimal Confirmdiscount
        {
            get { return _confirmdiscount; }
            set { this.ChangeNotify<decimal>("Confirmdiscount", value, ref _confirmdiscount); }
        }
        private DateTime? _arrivaltime;
        /// <summary>
        ///出货时间
        /// </summary>
        public DateTime? ArrivalTime
        {
            get { return _arrivaltime; }
            set { this.ChangeNotify<DateTime?>("ArrivalTime", value, ref _arrivaltime); }
        }
        private DateTime? _addtime;
        /// <summary>
        ///创建时间
        /// </summary>
        public DateTime? AddTime
        {
            get { return _addtime; }
            set { this.ChangeNotify<DateTime?>("AddTime", value, ref _addtime); }
        }
        private DateTime _edittime;
        /// <summary>
        ///修改时间
        /// </summary>
        public DateTime EditTime
        {
            get { return _edittime; }
            set { this.ChangeNotify<DateTime>("EditTime", value, ref _edittime); }
        }
        private string _shipno;
        /// <summary>
        ///出货单号
        /// </summary>
        public string ShipNo
        {
            get { return _shipno; }
            set { this.ChangeNotify<string>("ShipNo", value, ref _shipno); }
        }
        private string _shipremarks;
        /// <summary>
        ///出货备注
        /// </summary>
        public string ShipRemarks
        {
            get { return _shipremarks; }
            set { this.ChangeNotify<string>("ShipRemarks", value, ref _shipremarks); }
        }
        private DateTime _shiptime;
        /// <summary>
        ///出货时间
        /// </summary>
        public DateTime ShipTime
        {
            get { return _shiptime; }
            set { this.ChangeNotify<DateTime>("ShipTime", value, ref _shiptime); }
        }
        private DateTime _paytime;
        /// <summary>
        ///支付时间
        /// </summary>
        public DateTime PayTime
        {
            get { return _paytime; }
            set { this.ChangeNotify<DateTime>("PayTime", value, ref _paytime); }
        }
        private int _receiptstatus;
        /// <summary>
        ///未支付0 已支付1 未付清2
        /// </summary>
        public int ReceiptStatus
        {
            get { return _receiptstatus; }
            set { this.ChangeNotify<int>("ReceiptStatus", value, ref _receiptstatus); }
        }
        private decimal? _receiptprice;
        /// <summary>
        ///
        /// </summary>
        public decimal? ReceiptPrice
        {
            get { return _receiptprice; }
            set { this.ChangeNotify<decimal?>("ReceiptPrice", value, ref _receiptprice); }
        }
        private decimal _purchasermb;
        /// <summary>
        ///
        /// </summary>
        public decimal PurchaseRMB
        {
            get { return _purchasermb; }
            set { this.ChangeNotify<decimal>("PurchaseRMB", value, ref _purchasermb); }
        }
        private decimal _priceusd;
        /// <summary>
        ///买入美金总价
        /// </summary>
        public decimal PriceUSD
        {
            get { return _priceusd; }
            set { this.ChangeNotify<decimal>("PriceUSD", value, ref _priceusd); }
        } 
        /// <summary>
        ///买入美金总价
        /// </summary>
        public decimal ConfirmUSD { get; set; }
        
        private int _curtype;
        /// <summary>
        ///币种类型
        /// </summary>
        public int CurType
        {
            get { return _curtype; }
            set { this.ChangeNotify<int>("CurType", value, ref _curtype); }
        }
        private decimal? _purchaseexchangerate;
        /// <summary>
        ///采购汇率
        /// </summary>
        public decimal? PurchaseExchangerate
        {
            get { return _purchaseexchangerate; }
            set { this.ChangeNotify<decimal?>("PurchaseExchangerate", value, ref _purchaseexchangerate); }
        }
        private decimal? _salesexchangerate;
        /// <summary>
        ///销售汇率
        /// </summary>
        public decimal? SalesExchangerate
        {
            get { return _salesexchangerate; }
            set { this.ChangeNotify<decimal?>("SalesExchangerate", value, ref _salesexchangerate); }
        }
        private DateTime? _rectime;
        /// <summary>
        ///收款时间
        /// </summary>
        public DateTime? RecTime
        {
            get { return _rectime; }
            set { this.ChangeNotify<DateTime?>("RecTime", value, ref _rectime); }
        }
        private decimal _freight;
        /// <summary>
        ///运费
        /// </summary>
        public decimal Freight
        {
            get { return _freight; }
            set { this.ChangeNotify<decimal>("Freight", value, ref _freight); }
        }
        private DateTime? _inserttime;
        /// <summary>
        ///入库时间，不用手动指定
        /// </summary>
        public DateTime? InsertTime
        {
            get { return _inserttime; }
            set { this.ChangeNotify<DateTime?>("InsertTime", value, ref _inserttime); }
        }
        private DateTime? _updatetime;
        /// <summary>
        ///更新时间，不用手动指定
        /// </summary>
        public DateTime? UpdateTime
        {
            get { return _updatetime; }
            set { this.ChangeNotify<DateTime?>("UpdateTime", value, ref _updatetime); }
        }
        private string _supplier;
        /// <summary>
        ///
        /// </summary>
        public string Supplier
        {
            get { return _supplier; }
            set { this.ChangeNotify<string>("Supplier", value, ref _supplier); }
        }
        private bool _onshelves = false;
        /// <summary>
        ///是否上架
        /// </summary>
        public bool OnShelves
        {
            get { return _onshelves; }
            set { this.ChangeNotify<bool>("OnShelves", value, ref _onshelves); }
        }
        private string _originsn;
        /// <summary>
        ///原货号
        /// </summary>
        public string OriginSN
        {
            get { return _originsn; }
            set { this.ChangeNotify<string>("OriginSN", value, ref _originsn); }
        }
        private string _images;
        /// <summary>
        ///
        /// </summary>
        public string Images
        {
            get { return _images; }
            set { this.ChangeNotify<string>("Images", value, ref _images); }
        }
        private int _type = 0;
        /// <summary>
        ///品类
        /// </summary>
        public int Type
        {
            get { return _type; }
            set { this.ChangeNotify<int>("Type", value, ref _type); }
        }
        private int _style = 0;
        /// <summary>
        ///工艺造型
        /// </summary>
        public int Style
        {
            get { return _style; }
            set { this.ChangeNotify<int>("Style", value, ref _style); }
        }
        private int _material = 0;
        /// <summary>
        ///材质
        /// </summary>
        public int Material
        {
            get { return _material; }
            set { this.ChangeNotify<int>("Material", value, ref _material); }
        }
        private string _series;
        /// <summary>
        ///系类名称
        /// </summary>
        public string Series
        {
            get { return _series; }
            set { this.ChangeNotify<string>("Series", value, ref _series); }
        }
        private decimal _weight = 0.000M;
        /// <summary>
        ///重量（克）
        /// </summary>
        public decimal Weight
        {
            get { return _weight; }
            set { this.ChangeNotify<decimal>("Weight", value, ref _weight); }
        }
        private int _stocknumber = 0;
        /// <summary>
        ///数量
        /// </summary>
        public int StockNumber
        {
            get { return _stocknumber; }
            set { this.ChangeNotify<int>("StockNumber", value, ref _stocknumber); }
        }
        private decimal _totalweight = 0.000M;
        /// <summary>
        ///总重
        /// </summary>
        public decimal TotalWeight
        {
            get { return _totalweight; }
            set { this.ChangeNotify<decimal>("TotalWeight", value, ref _totalweight); }
        }
        private decimal _laborfee = 0.000M;
        /// <summary>
        ///单价工费
        /// </summary>
        public decimal LaborFee
        {
            get { return _laborfee; }
            set { this.ChangeNotify<decimal>("LaborFee", value, ref _laborfee); }
        }
        private decimal _goldprice = 0.000M;
        /// <summary>
        ///金价
        /// </summary>
        public decimal GoldPrice
        {
            get { return _goldprice; }
            set { this.ChangeNotify<decimal>("GoldPrice", value, ref _goldprice); }
        }
        private string _certtype;
        /// <summary>
        ///成品证书类型
        /// </summary>
        public string CertType
        {
            get { return _certtype; }
            set { this.ChangeNotify<string>("CertType", value, ref _certtype); }
        }
        private string _country;
        /// <summary>
        ///所在地国家
        /// </summary>
        public string Country
        {
            get { return _country; }
            set { this.ChangeNotify<string>("Country", value, ref _country); }
        }
        private string _state;
        /// <summary>
        ///所在地省份
        /// </summary>
        public string State
        {
            get { return _state; }
            set { this.ChangeNotify<string>("State", value, ref _state); }
        }
        private bool _isstock = false;
        /// <summary>
        ///是否现货
        /// </summary>
        public bool IsStock
        {
            get { return _isstock; }
            set { this.ChangeNotify<bool>("IsStock", value, ref _isstock); }
        }
        private string _remark;
        /// <summary>
        ///备注
        /// </summary>
        public string Remark
        {
            get { return _remark; }
            set { this.ChangeNotify<string>("Remark", value, ref _remark); }
        }
        private string _details;
        /// <summary>
        ///详情
        /// </summary>
        public string Details
        {
            get { return _details; }
            set { this.ChangeNotify<string>("Details", value, ref _details); }
        }
        private decimal _purchaselaborcost = 0.000M;
        /// <summary>
        ///买入工费
        /// </summary>
        public decimal PurchaseLaborCost
        {
            get { return _purchaselaborcost; }
            set { this.ChangeNotify<decimal>("PurchaseLaborCost", value, ref _purchaselaborcost); }
        }
        private decimal _purchasegoldprice = 0.000M;
        /// <summary>
        ///买入金价
        /// </summary>
        public decimal PurchaseGoldPrice
        {
            get { return _purchasegoldprice; }
            set { this.ChangeNotify<decimal>("PurchaseGoldPrice", value, ref _purchasegoldprice); }
        }
        private decimal _purchasecostprice = 0.000M;
        /// <summary>
        ///成本价
        /// </summary>
        public decimal PurchaseCostPrice
        {
            get { return _purchasecostprice; }
            set { this.ChangeNotify<decimal>("PurchaseCostPrice", value, ref _purchasecostprice); }
        }
        private int _id;
        /// <summary>
        ///
        /// </summary>
        public int ID
        {
            get { return _id; }
            set { this.ChangeNotify<int>("ID", value, ref _id); }
        }
        #endregion


    }
}
